package com.gusha.dao;

import java.math.BigInteger;
import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;


import com.gusha.model.SysProducts;

@Repository
public interface SysProductsDao extends JpaRepository<SysProducts,BigInteger>,JpaSpecificationExecutor<SysProducts> {
	
	@Query(value="select rm from SysProducts rm order by rm.clickMun desc")
	public List<SysProducts> fingAllByClickNum(String string);
	
	@Query(value="select rm from SysProducts rm where id=?1")
	public SysProducts findAllById(BigInteger id);


}
